import request from '@/utils/request'
import store from '../../store'
// 查询参数列表
// 新增参数配置

//考勤统计
export function getstudentslist(data) {
    return new Promise(resolve => {
        const response=store.state.student.cacheData
        resolve(response)
    })
}
//导入
export function uploadfile(data) {
    return request({
        url: '/business/student/importData',
        method: 'get',
        params: data
    })
}

//导出
export function downloadfile(data) {
    return request({
        url: '/business/student/export',
        method: 'get',
        params: data
    })
}

//头像
export function uploadimg(data) {
    return request({
        url: '/business/student/improveInfo' + data,
        method: 'post',
        params: data
    })
}